package com.codingman.springdemo3;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

@Aspect
public class Test1 {
	@Pointcut("execution(* Foo.*(..))")
	public void a() {
	}

	@Before("a()")
	public void myadvice(JoinPoint jp)
	{
		System.out.println("Before Advice");
	}
}
